import axios from 'axios';

/**
 * 获取业务对账列表
 */
function getBusinessCheck(data) {
  return axios.get('v1/account/list?', {params: data})
}

function saveAccount(data) {
  return axios.post('v1/account/save?', data)
}

function queryEmailList(data) {
  return axios.get('v1/email/list?', {params: data})
}

function queryVpsList(data) {
  return axios.get('v1/vps/list?', {params: data})
}

function queryCardList(data) {
  return axios.get('v1/card/list?', {params: data})
}

function queryVirtualList(data) {
  return axios.get('v1/virtual/list?', {params: data})
}

function queryAddressList(data) {
  return axios.get('v1/address/list?', {params: data})
}

function queryAccountDetail(data) {
  return axios.get('v1/account/detail?', {params: data})
}

export default {
  getBusinessCheck,
  saveAccount,
  queryEmailList,
  queryAccountDetail,
  queryVpsList,
  queryCardList,
  queryVirtualList,
  queryAddressList,
};
